//
//  GZSegmentBar.h
//  GZSegmentBar_Example
//
//  Created by Guo Rui on 2018/1/10.
//  Copyright © 2018年 GR. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GZSegmentBarModelProtocol.h"

@class GZSegmentBar;
@protocol GZSegmentBarDelegate <NSObject>

- (void)segmentBar:(GZSegmentBar *)segmentBar fromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex;

@end

@interface GZSegmentBar : UIView

@property (weak, nonatomic) id<GZSegmentBarDelegate> delegate;
@property (assign, nonatomic) NSInteger selectIndex;

- (void)setSegmentItems:(NSArray <id<GZSegmentBarModelProtocol>>*)items;


@end
